package com.paso.mycommons.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @Classname: RespBeanEnum
 * @Description: 公共返回对象枚举
 * @Date: 2021/2/3 22:22
 * @Created: by Wang Xu
 */
@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {
//    50008: Illegal token; 非法的
//    50012: Other clients logged in; 其他终端已经登录
//    50014: Token expired; TOKEN到期
    SUCCESS(20000,"SUCCESS"),
    ERROR(50020,"服务端异常"),
    DELETE_FAIL(50021,"删除失败"),
    DELETE_VIP_WECHAT_FAIL(50025,"删除VipWechat记录失败"),
    QUERY_FAIL(50022,"查询失败"),
    QUERY_OPENID_FAIL(50023,"根据opnid查询到VipWechat记录失败"),
    QUERY_OPENID1_FAIL(50024,"根据订单查询openid失败"),
    ILLEGAL_TOKEN(50008, "非法的token"),
    LOGGED(50012, "其他终端已经登录"),
    EXPIRED_TOKEN(50014, "TOKEN到期");
    private  final Integer code;
    private final  String message;
}
